# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=sushi
pkgver=3.38.1
pkgrel=0
pkgdesc="A quick preview for Nautilus"
url="https://gitlab.gnome.org/GNOME/sushi"
arch="all !s390x !riscv64" # blocked by gjs
license="GPL-2.0-or-later"
depends="bubblewrap"
makedepends="meson clutter-dev clutter-gst-dev clutter-gtk-dev evince-dev
	freetype-dev gstreamer-dev gjs-dev gtk+3.0-dev gtksourceview4-dev harfbuzz-dev
	gobject-introspection-dev webkit2gtk-dev libmusicbrainz-dev"
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/sushi/${pkgver%.*}/sushi-$pkgver.tar.xz"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
b999e6892314875725bd4029163ae58813b46f0e5c59e58b62fc4491d611b48fc39459f6c5b5e1a7d75d792cfeb66681f4d3a7057e8cde8f5c3364a2312e0be7  sushi-3.38.1.tar.xz
"
